package org.example;

import org.example.service.Work1;
import org.example.service.Work2;
import org.example.service.Work3;
import org.example.service.Work4;

public class Main {
    public static void main(String[] args) {
        Work1 work1 = new Work1();
        Work2 work2 = new Work2();
        Work3 work3 = new Work3();
        Work4 work4 = new Work4();


        /**
         * 输入一个字符串"abafeabdfaababdrera”中有多少个连续的"ab”
         */
        work1.count();

        /**
         * 从身份证号码中提取出公民的生日信息
         */
        work2.Id();

        /**
         * 解析url=https//www.baidu.com/s2wd=易牛云&Wt=java'，将wd和wt后面的值放入一个数组中。
         *
         * url=https//www.baidu.com/s2wd=易牛云&Wt=java'
         */
        work3.info();

        /**
         * 输入一个正则表达式，验证有效的网络Ipv4地址。
         */
        work4.verify();
    }
}